@import './base.less';

@font-face {
  font-family: amountFont;
  src: url('./fonts/PlaywriteDEGrund-Regular.ttf');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

ul {
  list-style: none;
}

body {
  min-height: 100vh;
  color: var(--neutral-1);
  background: var(--neutral-4);
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
input,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

fieldset,
img {
  border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
th,
var {
  font-style: normal;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

caption,
th {
  text-align: left;
}

div {
  word-wrap: break-word;
  word-break: break-all;
}
table {
  table-layout: fixed;
}

iframe {
  background-color: white;
}

input[type='text'],
input[type='password'],
select {
  font-size: 13px;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  background: none;
}

input[type='button'],
input[type='submit'],
input[type='reset'],
select {
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  cursor: pointer;
  outline: none;
}

textarea {
  overflow: auto;
  font-size: 12px;
  resize: none;
  -webkit-appearance: none;
  outline: none;
}

a {
  text-decoration: none;
  color: var(--neutral-3);
}

a:hover {
  color: #2378C8;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.amount-family {
  font-family: amountFont;
  line-height: 1.8;
  padding-top: 2px;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  user-select: none;
}

code {
  font-weight: 600;
  padding: 3px 5px;
  border-radius: 2px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    SF Mono,
    Menlo,
    Consolas,
    Liberation Mono,
    monospace;
  font-size: 85%;
}

#root {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ant-btn-color-primary {
  background-color: var(--primary-1);
}
.ant-btn-variant-solid:not(:disabled):not(.ant-btn-disabled):hover {
  background-color: var(--primary-1);
}
.ant-btn-variant-outlined, .ant-btn-variant-dashed {
  border-color: #EEE;
  color: #666;
  box-shadow: none;
}
.ant-btn-variant-outlined:not(:disabled):not(.ant-btn-disabled):hover, .ant-btn-variant-dashed:not(:disabled):not(.ant-btn-disabled):hover {
  border-color: #EEE;
  color: #666;
}
.ant-input-outlined:focus, .ant-input-outlined:focus-within {
  border-color: #999;
}
.ant-input-outlined:hover {
  border-color: #999;
}
.ant-select-outlined:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer):hover .ant-select-selector {
  border-color: #999;
}
.ant-select-focused:where(.css-dev-only-do-not-override-1261szd).ant-select-outlined:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {
  border-color: #999;
}

.my-modal {
  background: #fff;
  // padding: 24px;
  border-radius: 12px;
  box-shadow: 0px 8px 24px -4px rgba(16, 24, 40, 0.08);
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  position: relative;
  .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #F1F1F1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .modal-title {
      font-size: 17px;
      color: var(--neutral-1);
      font-weight: bold;
    }
    .modal-close-btn {
      width: 16px;
      height: 16px;
      background: url('')
        no-repeat;
      background-size: 16px 16px;
      display: block;
      cursor: pointer;
      // position: absolute;
      // top: 20px;
      // right: 20px;
    }
  }
  .modal-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    padding: 0 20px;
  }
  .modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 20px 20px 20px;
    button {
      width: 110px;
      height: 40px;
      span {
        font-weight: 500;
        font-size: 15px;
      }
    }
  }
}

.empty-wrap {
  width: 100%;
  padding: 60px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  p {
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    color: #BBB;
    a {
      margin-left: 2px;
    }
  }
}

.ant-modal-confirm .ant-modal-confirm-body {
  margin-bottom: 30px;
}
.ant-modal-confirm-btns {
  float: none !important;
  text-align: center! important;
}
.ant-checkbox-checked .ant-checkbox-inner {
  background-color: #000;
  border-color: #000;
}
.ant-checkbox-wrapper-checked:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner, .ant-checkbox-checked:not(.ant-checkbox-disabled):hover .ant-checkbox-inner {
  background-color: #000!important;
  border-color: #000!important;
}
.ant-picker-outlined:hover {
  border-color: #999;
}
.ant-picker-outlined:focus, :where(.css-dev-only-do-not-override-1261szd).ant-picker-outlined:focus-within {
  border-color: #999;
}
.ant-input-prefix, .ant-input-suffix {
  color: #999;
}
.ant-form-item .ant-form-item-label >label {
  font-size: 12px;
  height: auto;
  display: flex;
  align-items: center;
}